home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_10
/
9n10025a
< prev
next >
Wrap
Text File
|
1991-08-12
|
479b
|
20 lines
main()
{
void (*lookup(const char *pcmd))(void);
void stolower(char *pstring);
char command[21];
while (1) {
printf("\nEnter Action (`Help' for help): ");
scanf(" %20[^\n]", command);
if (command[0] == '\0') {
continue;
}
stolower(command);
(*lookup(command))(); /* call selected action */
}
}